$(function() {
    var api = CloudApi;
   
    $.getJSON('/actions.json', function(actions){
        for(var i=0;i<actions.length;i++)
        {            
            var html = '<tr>';
            //html += '<td>'+(new moment(schedules[i].created.timestamp)).format('YY/MM/DD hh:mm')+'</td>';
            html += '<td><a href="/actions/'+actions[i].uuid+'/edit">'+actions[i].name+'</a></td>';
            /*html += '<td>'+actions[i].enable+'</td>';
            html += '<td>'+actions[i].cron+'</td>';
            html += '<td><table>';
            for( var j=0;j<actions[i].actions.length; j++ )
            {
                html += '<tr><td><a href="/actions/'+actions[i].actions[j]+'">'+actions[i].actions[j]+'</a></td></tr>';
            }
            html += '</table></td>';*/
            $('#actions').append( html );
        }
    });
    
});